package cn.good.utils;

/**
 * 常量类
 */
public class Constant {
    public static final Long TOKEN_VALID_TIME=2*60*60*1000L;
    public static final Long TOKEN_REPLACEMENT_TIME=1*60*60*1000L;
    public static final Long TOKEN_REMAIN_TIME=2*60*1000L;
    public static final Long REGISTER_TIME=5*60*1000L;
    public static final String TOKEN_DATE_FORMAT="yyyyMMddHHmmss";
    public static final String EMAIL_RULE="^\\s*\\w+(?:\\.{0,1}[\\w-]+)*@[a-zA-Z0-9]+(?:[-.][a-zA-Z0-9]+)*\\.[a-zA-Z]+\\s*$";
    public static final String PHONE_RULE="^1[3578]{1}\\d{9}$";
    //redis 中手机信息存储 的 key开头
    public static final String PHONE_PREFIX="phone:";
    //本机机器码  生成订单使用
    public static final String MACHINE_CODE="D10000001";
    //手机MQ 中间消息
    public static final String MQ_PHONE="MQ_PHONE";
    //发送 手机 短信
    public static final String MQ_PHONE_JSM="MQ_PHONE";
    //分页容量
    public static final Integer PAGE_NO=5;


}
